package com.Spring.SpringSpms.model;

/**Project Entity represents the Project's within the organanization.
  *Project has Many-To-One  relation with Status.
  *Project has Many-To-Many relation with Platform.
  *Project has Many-To-Many relation with Employee.
**/

import java.util.Date;
import java.util.List;


public class Project
{
	private Integer project_id;
	private String project_name;
	private Status status_id;
	private String project_description;
	private Date planned_start_date;
	private Date planned_end_date;
	private Date actual_start_date;
	private Date actual_end_date;
	private List<Employee> employee;
	private int client_id;

	public Project(){
	
	}

	public Project(String projectName)
	{
		this.project_name = projectName;
	}



	public Integer getProject_id() {
		return project_id;
	}

	public void setProject_id(Integer project_id) {
		this.project_id = project_id;
	}

	public String getProject_name() {
		return project_name;
	}

	public void setProject_name(String project_name) {
		this.project_name = project_name;
	}

	public Status getStatus_id() {
		return status_id;
	}

	public void setStatus_id(Status status_id) {
		this.status_id = status_id;
	}

	public List<Employee> getEmployee() {
		return employee;
	}

	public void setEmployee(List<Employee> employee) {
		this.employee = employee;
	}

	public Status getStatus()
	{
		return status_id;
	}

	public void setStatus(Status status)
	{
		this.status_id = status;
	}

	public String getProject_description() {
		return project_description;
	}

	public void setProject_description(String project_description) {
		this.project_description = project_description;
	}

	public Date getPlanned_start_date() {
		return planned_start_date;
	}

	public void setPlanned_start_date(Date planned_start_date) {
		this.planned_start_date = planned_start_date;
	}

	public Date getPlanned_end_date() {
		return planned_end_date;
	}

	public void setPlanned_end_date(Date planned_end_date) {
		this.planned_end_date = planned_end_date;
	}

	public Date getActual_start_date() {
		return actual_start_date;
	}

	public void setActual_start_date(Date actual_start_date) {
		this.actual_start_date = actual_start_date;
	}

	public Date getActual_end_date() {
		return actual_end_date;
	}

	public void setActual_end_date(Date actual_end_date) {
		this.actual_end_date = actual_end_date;
	}

	
	
	public List<Employee> getEmployees()
	{
		return employee;
	}

	public void setEmployees(List<Employee> employees)
	{
		this.employee = employees;
	}

	public void addEmployee(Employee employee)
	{
		getEmployees().add(employee);
	}

	public int getClient_id() {
		return client_id;
	}

	public void setClient_id(int client_id) {
		this.client_id = client_id;
	}
	
	
	/*public Set<Platform> getPlatform()
	{
		return platforms;
	}

	public void setPlatforms(Set<Platform> platforms)
	{
		this.platforms = platforms;
	}

	public void addPlatform(Platform platform)
	{
		getPlatform().add(platform);
	}

	
	public List<Sprint> getSprintList()
	{
		return sprintList;
	}

	public void setSprintList(List<Sprint> sprintList)
	{
		this.sprintList = sprintList;
	}

	public void addSprintList(Sprint sprint)
	{
		sprint.setProject(this);
		getSprintList().add(sprint);
	}

	public List<Story> getStoryList()
	{
		return storyList;
	}

	public void setStoryList(List<Story> storyList)
	{
		this.storyList = storyList;
	}

	public void addStory(Story story)
	{
		story.setProject(this);
		getStoryList().add(story);
	}*/
}
